﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entidades;
using System.Globalization;
using System.Threading;
using InterfazWeb.RecursosIdiomas;

namespace InterfazWeb
{
    public partial class Default : System.Web.UI.Page
    {
        Organizador context = new Organizador();

        protected void Page_Load(object sender, EventArgs e)
        {
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("ca-ES");

            Label1.Text = StringResources.Usuario + ": ";
            Label2.Text = StringResources.Contrasena + ": ";
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string nombre = txtUsuario.Text;
            string contrasena = txtContrasena.Text;
            context.Usuarios.First(u => u.Nombre == nombre && u.Contrasena == contrasena);
        }
    }
}